from multiprocessing import Process
import time
import os


def test(num):
    print("pid=%d, ppid=%d,,,num=%d" % (os.getpid(), os.getppid(), num))

if __name__ == '__main__':
    print("----start----main--pid=%d----" % os.getpid())
    p = Process(target=test, args=(100,))
    p.start()
    print("----end----main--pid=%d----" % os.getpid())

print("----end--pid=%d----" % os.getpid())